{% extends 'AdminsBundle:base:main.0.html.twig' %}
{% block content %}
    <form id="form1" action="{{ submitUrl is defined ? submitUrl :"" }}" method="{{ submitType is defined ? 'POST':"GET" }}" enctype="multipart/form-data">
    <div class="div-content">
        {% block main %}

        {% endblock %}
    </div>
    {% block submit %}
        <div class="page-footer">
            <div class="btn-wrap">
                <input type="submit" value="提交保存" id="btnSubmit" class="btn" />
                <input name="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript:history.back(-1);" />
            </div>
        </div>
    {% endblock %}
    {% block script %}
    {% endblock %}
    </form>
{% endblock %}
{% block private %}
    <!-- 表单验证需引入-->
    <script type="text/javascript" charset="utf-8" src="{{ asset('/assets/js/Validform_v5.3.2_min.js') }}"></script>
    <script type="text/javascript">
        $(function () {
            //初始化表单验证
            $("#form1").initValidform();
        });
    </script>
{% endblock %}

